package pe.com.bn.sach.domain;

/**
 * Bnchf23ExpFamCtaPeriodoId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf23ExpFamCtaPeriodoId implements java.io.Serializable {

	// Fields

	private String f23NumCta;
	private String f23IdExpediente;
	private Long f23IdPersona;
	private Long f23IdDetalle;

	// Constructors

	/** default constructor */
	public Bnchf23ExpFamCtaPeriodoId() {
	}

	/** full constructor */
	public Bnchf23ExpFamCtaPeriodoId(String f23NumCta, String f23IdExpediente,
			Long f23IdPersona, Long f23IdDetalle) {
		this.f23NumCta = f23NumCta;
		this.f23IdExpediente = f23IdExpediente;
		this.f23IdPersona = f23IdPersona;
		this.f23IdDetalle = f23IdDetalle;
	}

	// Property accessors

	public String getF23NumCta() {
		return this.f23NumCta;
	}

	public void setF23NumCta(String f23NumCta) {
		this.f23NumCta = f23NumCta;
	}

	public String getF23IdExpediente() {
		return this.f23IdExpediente;
	}

	public void setF23IdExpediente(String f23IdExpediente) {
		this.f23IdExpediente = f23IdExpediente;
	}

	public Long getF23IdPersona() {
		return this.f23IdPersona;
	}

	public void setF23IdPersona(Long f23IdPersona) {
		this.f23IdPersona = f23IdPersona;
	}

	public Long getF23IdDetalle() {
		return this.f23IdDetalle;
	}

	public void setF23IdDetalle(Long f23IdDetalle) {
		this.f23IdDetalle = f23IdDetalle;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf23ExpFamCtaPeriodoId))
			return false;
		Bnchf23ExpFamCtaPeriodoId castOther = (Bnchf23ExpFamCtaPeriodoId) other;

		return ((this.getF23NumCta() == castOther.getF23NumCta()) || (this
				.getF23NumCta() != null
				&& castOther.getF23NumCta() != null && this.getF23NumCta()
				.equals(castOther.getF23NumCta())))
				&& ((this.getF23IdExpediente() == castOther
						.getF23IdExpediente()) || (this.getF23IdExpediente() != null
						&& castOther.getF23IdExpediente() != null && this
						.getF23IdExpediente().equals(
								castOther.getF23IdExpediente())))
				&& ((this.getF23IdPersona() == castOther.getF23IdPersona()) || (this
						.getF23IdPersona() != null
						&& castOther.getF23IdPersona() != null && this
						.getF23IdPersona().equals(castOther.getF23IdPersona())))
				&& ((this.getF23IdDetalle() == castOther.getF23IdDetalle()) || (this
						.getF23IdDetalle() != null
						&& castOther.getF23IdDetalle() != null && this
						.getF23IdDetalle().equals(castOther.getF23IdDetalle())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getF23NumCta() == null ? 0 : this.getF23NumCta().hashCode());
		result = 37
				* result
				+ (getF23IdExpediente() == null ? 0 : this.getF23IdExpediente()
						.hashCode());
		result = 37
				* result
				+ (getF23IdPersona() == null ? 0 : this.getF23IdPersona()
						.hashCode());
		result = 37
				* result
				+ (getF23IdDetalle() == null ? 0 : this.getF23IdDetalle()
						.hashCode());
		return result;
	}

}